<template>
	<public-view navType="other" navTitle="管理">
		<view class="content flex f-d-c a-i-c">
			<view 
			v-if="data.order.pay_time"
			class="setting-item w-100 flex a-i-c" 
			@click="goTo({url:'/pages/live/config/rebackSaveMoney'})">
				<view class="left all-center">
					<image class="icon" src="@/static/images/live/saveMoney-icon.svg" mode=""></image>
				</view>
				<view class="right flex f-d-c">
					<view class="title f-s-30 color-333 f-w-b m-b-8">
						退还保证金
					</view>
					<view class="color-999 f-s-24">
						申请退还保证金
					</view>
				</view>
			</view>
			<view class="setting-item w-100 flex a-i-c" @click="goTo({url:'/pages/live/config/myAdmin'})">
				<view class="left all-center">
					<image class="icon" src="@/static/images/lock-icon.svg" mode=""></image>
				</view>
				<view class="right flex f-d-c">
					<view class="title f-s-30 color-333 f-w-b m-b-8">
						账户
					</view>
					<view class="color-999 f-s-24">
						后台账号&密码
					</view>
				</view>
			</view>
			<view class="setting-item w-100 flex a-i-c" @click="goTo({url:'/pages/live/config/adminMoney'})">
				<view class="left all-center">
					<image class="icon" src="@/static/images/live/live-my-admin.svg" mode=""></image>
				</view>
				<view class="right flex f-d-c">
					<view class="title f-s-30 color-333 f-w-b m-b-8">
						账户收益
					</view>
					<view class="color-999 f-s-24">
						直播账户收益
					</view>
				</view>
			</view>
		</view>
	</public-view>
</template>

<script>
	import {goTo,goreLanch} from "@/nav.js"
	export default {
		data() {
			return {
				data: {

				}
			};
		},
		onShow() {
			this.getLiveInfo();
		},
		methods:{
			goTo,
			getLiveInfo() {
				let that = this
				that.util.postRequest({
					url:'v1/live/info'
					
				}).then(res => {
					if (res.data.id) {
						that.data = res.data
						// that.json_str = JSON.stringify(that.data)
					}
					
				}).catch(err => {

				})
			},
			checkLiveInfo () {
				
			}
		}
	}
</script>

<style lang="scss" scoped>
	.setting-item{
		padding: 40upx 20upx;
		background: #FFFFFF;
		border-radius: 20upx;
		margin-bottom: 32upx;
		.right{
			.title{
				line-height: 42upx;
			}
			.m-b-8{
				margin-bottom: 8upx;
			}
		}
		.left{
			width: 80upx;
			height: 80upx;
			margin-right: 20upx;
			.icon{
				width: 32upx;
				height: 32upx;
			}
		}
	}
	.content{
		width: 750upx;
		padding: 42upx 30upx;
	}
</style>
